﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Liang.Device.Camera
{
    /// <summary>
    /// 摄像头异常类
    /// </summary>
    public class CameraException : Exception
    {
        public string OprErrorMessage;

        public CameraException(string strMsg)
        {
            OprErrorMessage = strMsg;
            Console.WriteLine(OprErrorMessage);
        }

        public CameraException(string strMsg, string strException)
        {
            OprErrorMessage = string.Format("{0}, {1}", strMsg, strException);
            Console.WriteLine(OprErrorMessage);
        }
    }
}
